package normalapi;

import java.util.Calendar;
import java.util.Date;

public class CalendarDemo {
    public static void main(String[] args) {
        //获取日历类的实例，包含当前时间信息的数组
        Calendar calendar = Calendar.getInstance();
        System.out.println(calendar);
        Date date = new Date(0);
        calendar.setTime(date);
        System.out.println(calendar);
    }
}
